Pupil detection device

ABSTRACT

There is provided a pupil tracking device including an active light source, an image sensor and a processing unit. The active light source emits light toward an eyeball alternatively in a first brightness value and a second brightness value. The image sensor captures a first brightness image corresponding to the first brightness value and a second brightness image corresponding to the second brightness value. The processing unit identifies a brightest region at corresponding positions of the first brightness image and the second brightness image as an active light image.

RELATED APPLICATIONS

The present application is based on and claims priority to Taiwanese Application Number 101139163, filed Oct. 23, 2012, the disclosure of which is hereby incorporated by reference herein in its entirety.

BACKGROUND

1. Field of the Disclosure

This disclosure generally relates to an interactive system and, more particularly, to a pupil tracking device that includes at least one active light source to be served as a positioning reference point.

2. Description of the Related Art

As the interactive control mechanism can provide more intuitive operation to users, it has been widely applied to various multimedia systems, especially to an image display system having a display screen.

A remote controller capable of capturing images is generally served as a human-machine interface and the remote controller can be manufactured as various properties, such as a bat, a racket, a club and so on. There is another kind of interactive human-machine interface that does not need any hand-held device. For example, a pupil tracking device can perform the interactive operation according to the variation of a line of sight of the user.

The conventional pupil tracking device has the problem that it is easily affected by ambient light sources. For example, FIG. 1 shows a schematic diagram of an eye image 9, which contains a pupil image Ip and an ambient light source image Io. When the pupil image Ip overlaps the ambient light source image Io, it may not be able to position the pupil image Ip correctly such that the pupil tracking may not be performed correctly.

Accordingly, the present disclosure further provides a pupil tracking device that may eliminate the effect from ambient light sources thereby improving the accuracy of pupil tracking.

SUMMARY

The present disclosure provides a pupil tracking device that includes at least one active light source emitting light toward an eyeball to form a positioning reference point.

The present disclosure further provides a pupil tracking device suitable to be applied to a head accessory.

The present disclosure provides a pupil tracking device including an active light source, an image sensor and a processing unit. The active light source emits light toward an eyeball alternatively in a first brightness value and a second brightness value. The image sensor captures a first brightness image corresponding to the first brightness value and a second brightness image corresponding to the second brightness value. The processing unit is configured to identify a brightest region at corresponding positions in the first brightness image and the second brightness image as an active light image.

The present disclosure further provides a pupil tracking device including an active light source, an image sensor and a processing unit. The active light source emits light toward an eyeball alternatively in a first brightness value and a second brightness value. The image sensor captures a first brightness image corresponding to the first brightness value and a second brightness image corresponding to the second brightness value. The processing unit is configured to calculate a differential image between the first brightness image and the second brightness image and to identify a darkest region in the differential image as an active light image.

In one aspect, the processing unit is further configured to identify a pupil position according to the first brightness image or the second brightness image, wherein when the first brightness value is higher than the second brightness value, the processing unit identifies a plurality of pixels around a lowest gray level in the first brightness image and having gray levels within a gray level range as a pupil region, and calculates a gravity center or a center of the pupil region to be served as the pupil position.

In one aspect, the pupil tracking device further includes a memory unit configured to save pupil coordinate information associated with the active light image and the pupil position. The processing unit may calculate a current pupil coordinate according to the pupil coordinate information.

In one aspect, the first brightness image and the second brightness image may be implemented by changing the exposure time and/or the gain of the image sensor without changing the brightness value of the active light source.

The present disclosure further provides a pupil tracking device including at least two active light sources, an image sensor and a processing unit. The at least two active light sources alternatively emit light toward an eyeball. The image sensor captures a first image frame and a second image frame corresponding to the lighting of different of the active light sources. The processing unit is configured to calculate a differential image between the first image frame and the second image frame and to identify a darkest region and a brightest region in the differential image as active light images.

In one aspect, the processing unit further identifies a first pupil region according to the first image frame and identifies a second pupil region according to the second image frame, and defines a joined region of the first pupil region and the second pupil region as an outputted pupil region.

In one aspect, the pupil tracking device includes four active light sources, and the processing unit identifies four active light images in the differential image and respectively calculates a positioning coordinate associated with the four active light images. The processing unit may further calculate an eyeball center according to the four positioning coordinates.

In one aspect, the processing unit is further configured to identify an outputted pupil region according to the first image frame and the second image frame, and define a direction of connecting line of the eyeball center and the outputted pupil region as a direction of line of sight.

In the pupil tracking device according to the embodiment of the present disclosure, the active light image is referred to the reflection image of the active light source on the cornea.

In the pupil tracking device according to the embodiment of the present disclosure, the active light image is served as a positioning reference point in pupil tracking. Therefore, the pupil tracking device is preferably disposed on a head accessory so as to fix the position of the active light image in the eyeball.

In the pupil tracking device according to the embodiment of the present disclosure, the accuracy of pupil tracking may be effectively improved by accurately identify the position of the active light image to be served as the positioning reference point and by calculating the differential image to eliminate the effect from ambient light sources.

BRIEF DESCRIPTION OF THE DRAWINGS

Other objects, advantages, and novel features of the present disclosure will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.

FIG. 1 shows a schematic diagram of the eye image.

FIG. 2A shows a schematic block diagram of the pupil tracking device according to an embodiment of the present disclosure.

FIG. 2B shows a schematic diagram of the pupil coordinate information in the pupil tracking device according to the embodiment of the present disclosure

FIG. 3A shows an operational schematic diagram of the pupil tracking device according to an embodiment of the present disclosure.

FIG. 3B shows a schematic diagram of the image capturing and the lighting of the light source of the pupil tracking device according to an embodiment of the present disclosure.

FIG. 3C shows a schematic diagram of identifying the active light image in the pupil tracking device according to an embodiment of the present disclosure.

FIG. 3D shows a schematic diagram of the image capturing and the lighting of the light source of the pupil tracking device according to another embodiment of the present disclosure.

FIG. 4 shows a schematic diagram of identifying the pupil position in the pupil tracking device according to the embodiment of the present disclosure.

FIG. 5A shows an operational schematic diagram of the pupil tracking device according to another embodiment of the present disclosure.

FIG. 5B shows a schematic diagram of the image capturing and the lighting of the light source of the pupil tracking device according to another embodiment of the present disclosure.

FIG. 5C shows a schematic diagram of identifying the active light image in the pupil tracking device according to another embodiment of the present disclosure.

DETAILED DESCRIPTION OF THE EMBODIMENT

It should be noted that, wherever possible, the same reference numbers will be used throughout the drawings to refer to the same or like parts.

Referring to FIG. 2A, it shows a schematic block diagram of the pupil tracking device according to an embodiment of the present disclosure, which includes at least one active light source (e.g. four active light sources 111 to 114 shown herein), an image sensor 12, a processing unit 13 and a memory unit 14. The pupil tracking device 1 of this embodiment uses the active light source to project at least one active light image on an eyeball 90 to be served as a positioning reference point, and determines a pupil coordinate according to the relationship between a pupil position and the positioning reference point (i.e. the active light image), wherein the active light image is referred to a reflection image of the active light source on the cornea. The pupil tracking device 1 may wired or wirelessly transmit the pupil coordinate to an image display device 3 (FIG. 2B) to accordingly control the image display device 3 to perform a corresponding function. It should be mentioned that the purpose of using four active light sources is to calculate an eyeball center, but if it is to perform the pupil tracking only, any number of the active light sources may be used.

Generally speaking, when the eyeball 90 looks downward, the upper eyelid covers a part of the eyeball 90. Therefore, if the pupil tracking device 1 is disposed on a head accessory 2, the disposed position of the image sensor 12 is preferably lower than the eyeball 90 to avoid the pupil can not be detected when the eyeball 90 looks downward (i.e. the pupil moving downward).

The active light sources 111 to 114 may be infrared light sources, e.g. infrared light emitting diodes, to avoid affecting the vision during lighting. The active light sources 111 to 114 are configured to emit light toward the eyeball 90 so as to illuminate the eyeball 90 and form reflection light spots on the eyeball 90 (i.e. the active light images on the eyeball 90). It should be mentioned that each active light source may include only one light emission element or arranged by a plurality of light emission elements.

The image sensor 12 may be the sensor configured to sense optical energy such as a CCD image sensor and a COMS image sensor, and captures image frames of the eyeball 90 at a frame rate corresponding to the lighting of the active light sources 111 to 114. The image sensor 12 may capture image frames with a fixed or variable exposure time and gain. It should be mentioned that the frame rate of the image sensor 12 may not be equal to the lighting frequency of the active light sources 111 to 114.

The processing unit 13 is configured to control the lighting of the active light sources 111 to 114 and the image capturing of the image sensor 12, and to identify the pupil position, pupil coordinate, active light image, eyeball center and direction of line of sight according to the image frames captured by the image sensor 12 (described later). In other embodiments, the processing unit 13 may also be formed by a plurality elements without any limitation, e.g. an independent light control unit for controlling the active light sources 111 to 114 and an independent digital signal processor (DSP) for performing the image post-processing.

The memory unit 14 is configured to save pupil coordinate information associated with the active light image and the pupil position. In this manner, when the processing unit 13 obtains a current relationship between the current pupil position and the active light image, a current pupil coordinate may be obtained according to the previously saved pupil coordinate information. For example referring to FIG. 2B, the pupil tracking device 1 according to the embodiment of the present disclosure may include a setup procedure that may be automatically entered before each operation or entered according to an instruction. In the setup procedure, a user may sequentially stare at predetermined reference points, e.g. four corners C₁ to C₄ of the image display device 3, but not limited to. Meanwhile the image sensor 12 sequentially captures four eye images 9 ₁ to 9 ₄, and each of the eye images 9 ₁ to 9 ₄ respectively contains a pupil image I_(C1) to I_(C4) and an active light image I₁₁₁, wherein the active light image I₁₁₁ locates at the same (or corresponding) position in the four eye images 9 ₁ to 9 ₄. For example, when the user stares at the reference point C₁, the image sensor 12 captures the eye image 9 ₁, wherein a vector from the pupil image I_(C1) to the active light image I₁₁₁ is assumed to be {right arrow over (d)}₁; similarly, the processing unit 13 may respectively calculate vectors {right arrow over (d)}₂ to {right arrow over (d)}₄ in the eye images 9 ₂ to 9 ₄. The pupil tracking device 1 then defines an operating space according to the vectors {right arrow over (d)}₁ to {right arrow over (d)}₄ to be previously saved in the memory unit 14. In this manner, in actual operation the processing unit 13 may calculate a current pupil coordinate according to the operating space. It should be mentioned that directions of the vectors {right arrow over (d)}₁ to {right arrow over (d)}₄ in FIG. 2B may be reversed.

Referring to FIG. 3A, it shows an operational schematic diagram of the pupil tracking device 1 according an embodiment of the present disclosure. The pupil tracking device 1 includes an active light source 111, an image sensor 12, a processing unit 13 and a memory unit 14. As mentioned above the memory unit 14 is configured to save pupil coordinate information associated with the active light image and the pupil position, and thus details thereof are not repeated herein.

Referring to FIGS. 3A-3D, FIG. 3B shows a schematic diagram of the image capturing of the image sensor 12 and the lighting of the active light source 111 in the pupil tracking device of FIG. 3A; FIG. 3C shows a schematic diagram of identifying the active light image I₁₁₁ by the processing unit 13 in the pupil tracking device of FIG. 3A; and FIG. 3D shows another schematic diagram of the image capturing of the image sensor 12 and the lighting of the active light source 111 in the pupil tracking device of FIG. 3A.

The active light source 111 emits light toward an eyeball 90 alternatively in a first brightness value and a second brightness value. The image sensor 12 captures a first brightness image f_(b1) corresponding to the first brightness value and a second brightness image f_(b2) corresponding to the second brightness value. For example in FIG. 3C, the first brightness image f_(b1) contains a brightest region A₁₁₁ (i.e. the active light image), a pupil image 91, an iris image 92 and a cornea area 93. The second brightness image f_(b2) contains a brightest region A₁₁₁′ (i.e. the active light image), a pupil image 91′, an iris image 92′ and a cornea area 93′. As the pupil tracking device 1 according to the embodiment of the present disclosure is preferably disposed on a head accessory 2 to allow the active light source 111 to keep a fixed relative position with respect to the eyeball 90, the brightest regions A₁₁₁ and A₁₁₁′ are at corresponding (or identical) positions in different brightness images. The active light image is the direct reflection point of the active light source 111 on the cornea, and thus the active light image is the brightest region in the brightness image. Therefore, the processing unit 13 may identify a brightest region at the corresponding positions (i.e. A₁₁₁ and A₁₁₁′) in the first brightness image f_(b1) and the second brightness image f_(b2) as an active light image I₁₁₁, wherein said brightest region is referred to the region having the highest gray level. As the space relationship between the eyeball 90 and ambient light sources is not fixed, the ambient light source image does not locate at the same position in different brightness images. Accordingly, although there may be other ambient light source images contained in the brightness image captured by the image sensor 12, the effect from ambient light sources may be eliminated by searching the brightest region at corresponding positions. In other embodiments, the image sensor 12 may further capture an image (e.g. a third brightness image) f_(b3) when the active light source 111 is turned off as shown in FIG. 3D, and then subtracts the third brightness image f_(b3) from the first brightness image f_(b1) and the second brightness image f_(b2) respectively to obtain f_(b13) and f_(b23) so as to eliminate the interference from ambient light and stabilize the detection of the active light image of the brightest region.

Furthermore, in addition to changing the brightness value of the active light source 11 (e.g. changing the drive current thereof), the same object may be achieved by fixing the brightness value of the active light source 111 but changing the sampling parameter (e.g. including the exposure time and gain) of the image sensor 12. That is, in another embodiment the first brightness value is equal to the second brightness value, and the image sensor 12 captures the first brightness image f_(b1) with a first exposure time and a first gain and captures the second brightness image f_(b2) with a second exposure time and a second gain, wherein the first exposure time is not equal to the second exposure time and/or the first gain is not equal to the second gain.

In addition, in this embodiment the processing unit 13 may further identify a pupil position according to the first brightness image f_(b1) or the second brightness image f_(b2), wherein the processing unit 13 preferably identifies the pupil position according to the brightness image having higher brightness so as to clearly identify the pupil image 91. For example referring to FIG. 4, the processing unit 13 is configured to calculate a lowest gray level P₁ in the first brightness image f_(b1) (e.g. assuming the first brightness value is higher than the second brightness value) and to identify a plurality of pixels around the lowest gray level P₁ and having gray levels within a gray level range Rg as a pupil region PA. When the active light source 11 is turned on, the pupil image 91 has the lowest brightness, the cornea area 93 has the highest brightness and the iris image 92 has the brightness between the pupil image 91 and the cornea area 93, and thus the lowest gray level P₁ appears in the pupil image 91. Therefore, the pixel region neighboring to the lowest gray level P₁ may be defined as the pupil region PA. The pixel region neighboring to the lowest gray level P₁ and adjacent to each other may be defined as a same object by using the image grouping, for example referred to U.S. Patent Pub. No. 2011/0176733, entitled “Image recognition method” and assigned to the same assignee of the present application. In addition, the gray level range Rg may be set according to the operation environment of the pupil tracking device 1, e.g. different gray level ranges Rg may be set for outdoor and indoor use. Furthermore, to avoid noise interference, the processing unit 13 may further identify whether the pupil region PA is belong to the ambient light source image according the size and shape thereof, e.g. when the size is too small and the shape is not a circle, it may be the ambient light source image and is removed.

Next, the processing unit 13 may calculate a gravity center or a center of the pupil region PA to be served as a pupil position P₂, and output a pupil coordinate (x,y) according to a relative position between the pupil position P₂ and the active light image I₁₁₁ and referencing the pupil coordinate information saved in the memory unit 14. The processing unit 13 may relatively control a cursor motion on an image display device 3 according to the pupil coordinate (x,y). It is appreciated that the pupil position P₂ may not be equal to the position of the lowest gray level P₁.

In a word, in this embodiment the processing unit 13 identifies the active light image I₁₁₁ according to two image frames but identifies the pupil position P₂ with only one image frame (e.g. the brighter image) so as to eliminate the interference from ambient light sources and the active light image is served as a positioning reference point in pupil tracking.

In another embodiment, in order to further eliminate the influence from ambient light sources, the processing unit 13 may further calculate a differential image (f_(b1)-f_(b2)) between the first brightness image f_(b1) and the second brightness image f_(b2), and compare a darkest region in the differential image (f_(b1)-f_(b2)) with the first brightness image f_(b1) or the second brightness image f_(b2) so as to identify an active light image I₁₁₁″ (as shown in FIG. 3C), wherein said darkest region is referred to the region having the lowest gray level, e.g. about 0 gray level or a relative lowest with respect to other pixel gray levels.

More specifically speaking, as the active light image I₁₁₁ (i.e. the brightest region A₁₁₁ and A₁₁₁′) has the highest brightness (e.g. the highest gray level of the used gray level scale) in the first brightness image f_(b1) and the second brightness image f_(b2), the active light image I₁₁₁″ in the differential image (f_(b1)-f_(b2)) has the lowest brightness. For example in one embodiment, it is assumed that the active light image I₁₁₁ is 255 gray level, the pupil image 91 is 0 gray level, the iris image 92 is 128 gray level and the cornea area 93 is 228 gray level in the first brightness image f_(b1); and the active light image I₁₁₁′ is 255 gray level, the pupil image 91′ is 0 gray level, the iris image 92′ is 64 gray level and the cornea area 93′ is 100 gray level in the second brightness image f_(b2). Therefore, it is obtained that the active light image I₁₁₁″ is 0 gray level, the pupil image 91″ is 0 gray level, the iris image 92″ is 64 gray level and the cornea area 93″ is 128 gray level in the differential image (f_(b1)-f_(b2)). As the pupil images 91 and 91′ are both 0 gray level, the pupil image 91″ in the differential image (f_(b1)-f_(b2)) also has the lowest brightness. Now, the position of the active light image I₁₁₁″ (as shown in FIG. 3C) may be identified by comparing the differential image (f_(b1)-f_(b2)) with the first brightness image f_(b1) or the second brightness image f_(b2). Since the pupil images 91 and 91′ have the lowest brightness in the first brightness image f_(b1) or the second brightness image f_(b2), the method of comparison may be performed by identifying the image object whose gray level changes from relative brightest to darkest when comparing the first brightness image f_(b1) with the differential image (f_(b1)-f_(b2)) so as to accordingly determine the position of the active light image I₁₁₁″ (as shown in FIG. 3C), or identifying the image object whose gray level changes from relative brightest to darkest when comparing the second brightness image f_(b2) with the differential image (f_(b1)-f_(b2)) so as to accordingly determine the position of the active light image I₁₁₁″ (as shown in FIG. 3C). In another embodiment, it is able to identify the object image in the differential image (f_(b1)-f_(b2)) having the lowest brightness and a smaller area as the active light image and identify the object image having the lowest brightness and a larger area as the pupil image.

Furthermore, in this embodiment in addition to that the calculation of the active light image I₁₁₁ is performed by using the differential image (f_(b1)-f_(b2)), the method of identifying the pupil position, constructing the pupil coordinate information and implementing the first brightness image f_(b1) and the second brightness image f_(b2) is similar to the previous embodiment, and thus details thereof are not repeated herein.

Referring to FIG. 5A, it shows an operational schematic diagram of the pupil tracking device 1 according to another embodiment of the present disclosure. The pupil tracking device 1 includes four active light sources 111 to 114, an image sensor 12, a processing unit 13 and a memory unit 14. As mentioned above the memory unit 14 is configured to save pupil coordinate information associated with the active light image and the pupil position, and thus details thereof are not repeated herein.

Referring to FIGS. 5A-5C, FIG. 5B shows a schematic diagram of the image capturing of the image sensor 12 and the lighting of the active light sources 111 to 114 in the pupil tracking device of FIG. 5A; and FIG. 5C shows a schematic diagram of identifying the active light image by the processing unit 13 in the pupil tracking device of FIG. 5A. As mentioned above, the purpose of using four active light sources is to calculate the eyeball center, and if it is to perform the pupil tracking only, using at least two active light sources may achieve the object of the present embodiment.

The active light sources 111 to 114 alternatively emit light toward an eyeball 90 so as to form reflection light spots LS₁₁₁ to LS₁₁₄ on the eyeball 90. The image sensor 112 captures a first image frame f1 and a second image frame f2 corresponding to the lighting of different combinations of the active light sources 111 to 114. The processing unit 13 is configured to calculate a differential image (f1-f2) between the first image frame f1 and the second image frame f2, and identify a darkest region (e.g. I₁₁₃′ and I₁₁₄′) and a brightest region (e.g. I₁₁₁′ and I₁₁₂′) in the differential image (f1-f2) as the active light image.

For example in FIG. 5C, when the active light sources 111 and 112 are turned on (the active light sources 113 and 114 turned off now), the image sensor 12 captures a first image frame f1, which contains a pupil image 91, an iris image 92, a cornea area 93 and reference active light images I₁₁₁ and I₁₁₂; and when the active light sources 113 and 114 are turned on (the active light sources 111 and 112 turned off now), the image sensor 12 captures a second image frame f2, which contains a pupil image 91′, an iris image 92′, a cornea area 93′ and reference active light images I₁₁₃ and I₁₁₄, wherein the light source brightness associated with the first image frame f1 and the light source brightness associated with the second image frame f2 may or may not identical without any limitation. In addition in other embodiments, at least one of the active light sources 111 to 114 (e.g. one or three active light sources) are turned on corresponding to the capturing of the first image frame f1 and the rest active light sources (e.g. three or one active light source) are turned on corresponding to the capturing of the second image frame f2; i.e. it is not limited to turn on two active light sources at the same time. When the second image frame f2 is subtracted from the first image frame f1, the reference active light images I₁₁₁ and I₁₁₂ become the brightest regions to have the highest gray level, and the reference active light images I₁₁₃ and I₁₁₄ become the darkest regions to have the lowest gray level in the differential image (f1−f2). Accordingly, the processing unit 13 may identify four active light images I₁₁₁′ to I₁₁₄′ in the differential image (f1-f2). In one embodiment, it is assumed that in the first image frame f1 the active light images I₁₁₁ and I₁₁₂ have about +255 gray level, the pupil image 91 has about 0 gray level, the iris image 92 has about 64 gray level and the cornea area 93 has about 128 gray level; and in the second image frame f2 the active light images I₁₁₃ and I₁₁₄ have about +255 gray level, the pupil image 91′ has about 0 gray level, the iris image 92′ has about 64 gray level and the cornea area 93′ has about 128 gray level. Accordingly, it is obtained that in the differential image (f1-f2) the active light images I₁₁₁′ and I₁₁₂′ are about +127 gray level, the active light images I₁₁₃′ and I₁₁₄′ are about −127 gray level and other parts are about 0 gray level. In another embodiment, it is able to adjust all gray levels to allow every gray level to be larger than or equal to zero. For example, the active light images I₁₁₁′ and I₁₁₂′ may be adjusted to about +254 gray level, the active light images I₁₁₃′ and I₁₁₄′ may be adjusted to about 0 gray level and other parts are adjusted to about +127 gray level. It should be mentioned that the above gray levels are only exemplary.

As four active light sources 111 to 114 are used in this embodiment, after identifying the four active light images I₁₁₁′ to I₁₁₄′ in the differential image (f1-f2), the processing unit 13 may respectively calculate a positioning coordinate associated with the four active light images I₁₁₁′ to I₁₁₄′, and each of the positioning coordinates may be a three-dimensional coordinate. The processing unit 13 may calculate an eyeball center of the eyeball 90 according to the four positioning coordinates, e.g. calculating by the sphere equation (x−x₀)²+(y−y₀)₂+(z−z₀)²=r². In this manner, the processing unit 13 may further define a direction of connection line of the eyeball center and an outputted pupil region as a direction of line of sight.

In this embodiment, the outputted pupil region may be determined as following. First, the processing unit 13 identifies a first pupil region according to the first image frame f1 and a second pupil region according to the second image frame f2. The method of identifying the pupil region is similar to FIG. 4; i.e. the processing unit 13 identifies a plurality of pixels around a lowest gray level (e.g. P₁) in the first image frame f1 and having gray levels within a gray level range Rg as the first pupil region (e.g. PA); and the processing unit 13 identifies a plurality of pixels around a lowest gray level (e.g. P₁) in the second image frame f2 and having gray levels within the gray level range Rg as the second pupil region (e.g. PA). After the first pupil region and the second pupil region are identified, the processing unit 13 calculates a gravity center or a center of the first pupil region to be served as a first pupil position (e.g. P₂) and calculates a gravity center or a center of the second pupil region to be served as a second pupil position (e.g. P₂).

As two image frames may be used to obtain the pupil image in this embodiment, the processing unit 13 may define a joined region of the first pupil region and the second pupil region as an outputted pupil region. Similarly, the processing unit 13 may determine an outputted pupil coordinate according to the outputted pupil region and the pupil coordinate information previously saved in the memory unit 14, and the four active light images are served as positioning reference points herein. In other embodiments, the processing unit 13 may select one of the first pupil region and the second pupil region as the outputted pupil region.

In addition, the pupil tracking device 1 according to the embodiment of the present disclosure may cooperate with a display unit for displaying images, and the display unit may be integrated on the head accessory 2, e.g. glasses or a goggle.

The pupil tracking device 1 according to the embodiment of the present disclosure may further have the blinking detection function. For example, the processing unit 13 may record time intervals in which the pupil is detected and not detected respectively thereby identifying the blinking action.

The pupil tracking device 1 according to the embodiment of the present disclosure may further have sleep detection and distraction detection functions. For example, when the pupil tracking device 1 is applied to the vehicle devices, it is able to detect whether the driver is sleepy or watches ahead and give a warning in suitable time. The sleep detection may be implemented by detecting the time ratio of eye closing and eye opening, and the distraction detection may be implemented by detecting the direction of line of sight of the driver.

The pupil tracking device 1 according to the embodiment of the present disclosure may further have blinking frequency detection and dry eye detection functions. More specifically speaking, the processing unit 13 may derive the possibility and extend of dry eye according to the detected blinking frequency and notify the user to blink his or her eyes.

The pupil tracking device 1 according to the embodiment of the present disclosure may further have the gesture recognition function. The gesture recognition mentioned herein may be, for example, detecting the pupil moving toward a predetermined direction for predetermined times and comparing the detected results with predetermined gestures so as to achieve the operation of performing specific function(s). The gesture recognition is similar to the hand gesture recognition using other parts of the body, e.g. the hand or finger(s).

The pupil tracking device 1 according to the embodiment of the present disclosure may further have the power saving function. For example, a power saving mode may be entered when the pupil is not detected or the image variation between image frames is too small for a predetermined time interval.

It is appreciated that the ratio of the active light image and the pupil image in the drawings herein are only exemplary.

It should be mentioned that the pupil tracking device 1 according to the embodiment of the present disclosure may be directly manufactured as a head mounted pupil tracking device or may be fixed, using a securing member, on a head accessory, e.g. the glasses, goggle or hat that is worn, covered or mounted on the user's head. Preferably the active light source does not have relative movement with respect to the human eye, and the active light image is served as the positioning reference point in pupil tracking.

As mentioned above, as the conventional pupil tracking device is not able to eliminate the interference from ambient light sources, misdetection may be caused during operation. Therefore, the present disclosure further provides a pupil tracking device (FIGS. 2A, 3A and 5B) that includes an active light source having a fixed relative position with respect to the eyeball to be served as a positioning reference point so as to eliminate the interference from ambient light sources thereby improving the detection accuracy.

Although the disclosure has been explained in relation to its preferred embodiment, it is not used to limit the disclosure. It is to be understood that many other possible modifications and variations can be made by those skilled in the art without departing from the spirit and scope of the disclosure as hereinafter claimed. 

What is claimed is:
 1. A pupil tracking device, comprising: an infrared light source configured to emit light toward an eyeball alternatively in a first brightness value and a second brightness value; an image sensor having a contact point and configured to capture a first brightness image corresponding to the first brightness value and a second brightness image corresponding to the second brightness value; and a processing unit electrically coupled to the contact point of the image sensor, and configured to identify a first brightest region in the first brightness image and a second brightest region in the second brightness image, identify the first brightest region and the second brightest region as infrared light images associated with the infrared light source when the first brightest region and the second brightest region are at corresponding positions in the first brightness image and the second brightness image, and identify the first brightest region and the second brightest region as ambient light source images when the first brightest region and the second brightest region are not at corresponding positions in the first brightness image and the second brightness image.
 2. The pupil tracking device as claimed in claim 1, wherein the processing unit is further configured to identify a pupil position according to the first brightness image or the second brightness image.
 3. The pupil tracking device as claimed in claim 2, wherein the first brightness value is higher than the second brightness value; and the processing unit is configured to identify a plurality of pixels around a lowest gray level in the first brightness image and having gray levels within a gray level range as a pupil region, and calculate a gravity center or a center of the pupil region as the pupil position.
 4. The pupil tracking device as claimed in claim 2, further comprising a memory unit configured to save pupil coordinate information associated with the infrared light image and the pupil position, and the processing unit is further configured to remove the ambient light source images from the first and second brightness images.
 5. The pupil tracking device as claimed in claim 1, wherein the first brightness value is equal to the second brightness value; and the image sensor is configured to capture the first brightness image with a first exposure time and a first gain, and capture the second brightness image with a second exposure time and a second gain, wherein the first exposure time is not equal to the second exposure time and/or the first gain is not equal to the second gain.
 6. The pupil tracking device as claimed in claim 1, wherein the pupil tracking device is disposed on a head accessory. 